<template>
  <div>
    <div>
      <div v-html="message.body" />
    </div>
  </div>
</template>

<script>
export default {
  name: 'Message',
  components: {},
  directives: {},
  filters: {},
  mixins: [],

  props: {
    message: {
      type: Object,
      default: () => {
        return {}
      }
    }
  },

  data() {
    return {
      //
    }
  },
  computed: {
    //
  },

  watch: {
    //
  },

  async created() {
    //
  },

  mounted() {
    //
  },

  methods: {
    // 屏幕滚动
    scroll() {
      this.$nextTick(() => {
        this.$refs.main.scrollTop = this.$refs.content.scrollHeight
      })
    }
  }
}
</script>

<style type="text/css"></style>
